package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.MsgDao;
import io.renren.entity.MsgEntity;
import io.renren.service.MsgService;



@Service("msgService")
public class MsgServiceImpl implements MsgService {
	@Autowired
	private MsgDao msgDao;
	
	@Override
	public MsgEntity queryObject(Integer id){
		return msgDao.queryObject(id);
	}
	
	@Override
	public List<MsgEntity> queryList(Map<String, Object> map){
		return msgDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return msgDao.queryTotal(map);
	}
	
	@Override
	public void save(MsgEntity msg){
		msgDao.save(msg);
	}
	
	@Override
	public void update(MsgEntity msg){
		msgDao.update(msg);
	}
	
	@Override
	public void delete(Integer id){
		msgDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		msgDao.deleteBatch(ids);
	}
	
}
